package com.cn.wanxi.thread;

public class MyThread extends Thread {
    private String name;

    MyThread() {
    }

    MyThread(String name) {
        this.name = name;
    }

    @Override
    public void run() {
//        将当前线程打印出来
        System.out.println(getName() + "-------" + 11);
    }
}
